import cv2
import pylab


#对lena进行逆时针45度的翻转，并进行0.6倍缩放
lena=cv2.imread("train_image/dollor.png")
lena=cv2.cvtColor(lena,cv2.COLOR_BGR2RGB)
height,width=lena.shape[:2]
M=cv2.getRotationMatrix2D((width/2,height/2),15,0.6)
rotate=cv2.warpAffine(lena,M,(width,height))
pylab.imshow(rotate)
pylab.show()